<%--
    Document   : loginUser
    Created on : Jul 8, 2010, 11:37:48 PM
    Author     : XPMUser
--%>

<%@page pageEncoding="UTF-8"%>
<%@ include file="/taglib.jsp"%>

<html:html lang="true">

    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title><bean:message key="welcome.title"/></title>
        <html:base/>
   </head>

    <script type="text/javascript">
	function fnGrabar(){
            var objform = document.getElementById('FLoginUser');
	    objform.strMedoto.value='validarUsuario';
	    objform.action='${ctx}/siass/ALoginUser.do';
	    objform.submit();
	}
    </script>

    <body style="background-color: white">

        <logic:notPresent name="org.apache.struts.action.MESSAGE" scope="application">
            <div  style="color: red">
                ERROR:  Application resources not loaded -- check servlet container
                logs for error messages.
            </div>
        </logic:notPresent>

        <html:form action="/ALoginUser" styleId="FLoginUser" method="post">
        <fieldset>
            <html:hidden property="strMedoto" value="__"/>
            <p>&nbsp;</p>
            <html:text property="strLogin" styleId="strLogin" maxlength="100" size="40" style="width : 150px"/>

                <html:password property="strPassword" styleId="strPassword" maxlength="100" size="40" style="width : 150px"/>

                <img alt="Imagen"  src="/siass/simpleCaptchaImg"/>
               <html:text property="strCaptcha" styleId="strCaptcha" maxlength="100" size="40" style="width : 150px"/>

                 <div class="contSist_capaEnlace">
                    <a href="javascript:void(0);" onclick="javascript:fnGrabar();"></a>
                    <a href="javascript:void(0);" class="btnGrabar" onclick="javascript:fnGrabar();"></a>
                </div>

                <html:button property="xx"  value="aceptar" onclick="javascript:fnGrabar();" ></html:button>
        </fieldset>
        </html:form>
        <html:errors/>

        <h3><bean:message key="welcome.heading"/></h3>
        <p><bean:message key="welcome.message"/></p>

    </body>
</html:html>